/**
 * Created by lenovo on 2017/2/22.
 */
'use strict'
const express=require('express');
const path=require('path');
//创建路由
const infoRoute=express.Router()
const infoCorl=require(path.join(__dirname,'../controllers/infoCorl.js'))

infoRoute.get('/info',infoCorl.getInfo);
//进入新增页面
infoRoute.get('/add',infoCorl.getAddPage);
//新增成员
infoRoute.post('/add',infoCorl.addStudent);
//进入修改页面
infoRoute.get('/update/:studentId',infoCorl.getUpdatePage)
//修改数据
infoRoute.post('/update/:studentId',infoCorl.updateMessange)
//删除数据
infoRoute.get('/delect/:studentId',infoCorl.deleteMessage)

module.exports=infoRoute;
